flyweight pattern meaning in English
轻量模式
羽量
Examples
- Immutability is what enables the flyweight pattern , which uses sharing to facilitate using objects to represent large numbers of fine - grained objects efficiently
不变性启用了flyweight模式,该模式利用共享使得用对象有效地表示大量细颗粒度的对象变得容易。 - The flyweight pattern employs a factory method to dispense references to immutable fine - grained objects and uses sharing to keep the object count down by only having a single instance of the object corresponding to the letter " a . " for more information on the flyweight pattern , see the classic book ,
Flyweight模式采用工厂方法来分配对不变的细颗粒度对象的引用,并通过仅使一个对象实例与字母“ a ”对应来利用共享缩减对象数。有关flyweight模式的更多信息,请参阅经典书籍